<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>API docs for &ldquo;pymine.beautifulsoup.BeautifulSoup.Tag&rdquo;</title>
    <meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
    <link href="apidocs.css" type="text/css" rel="stylesheet" />
    
    
  </head>
  <body>
    <h1 class="class">Class p.b.B.Tag(<a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html">PageElement</a>):</h1>
    <p>
      <span id="part">Part of <a href="pymine.html">pymine</a>.<a href="pymine.beautifulsoup.html">beautifulsoup</a>.<a href="pymine.beautifulsoup.BeautifulSoup.html">BeautifulSoup</a></span>
      
      <a href="classIndex.html#pymine.beautifulsoup.BeautifulSoup.Tag">View In Hierarchy</a>
    </p>
    <div>
      <p>Known subclasses: <a href="pymine.beautifulsoup.BeautifulSoup.BeautifulStoneSoup.html">pymine.beautifulsoup.BeautifulSoup.BeautifulStoneSoup</a></p>
    </div>
    <div>Represents a found HTML tag with its attributes and contents.<table class="fieldTable"></table></div>
    
    
    <div id="splitTables">
      <table class="children sortable" id="id60">
  
  
  
  
  <tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#_invert">_invert</a></td>
    <td><span>Cheap function to invert a hash.</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#_convertEntities">_convertEntities</a></td>
    <td><span>Used in a call to re.sub to replace HTML, XML, and numeric</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#__init__">__init__</a></td>
    <td><span>Basic constructor.</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#getString">getString</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#setString">setString</a></td>
    <td><span>Replace the contents of the tag with a string</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#getText">getText</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#get">get</a></td>
    <td><span>Returns the value of the 'key' attribute for the tag, or</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#clear">clear</a></td>
    <td><span>Extract all children.</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#index">index</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#has_key">has_key</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#__getitem__">__getitem__</a></td>
    <td><span>tag[key] returns the value of the 'key' attribute for the tag,</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#__iter__">__iter__</a></td>
    <td><span>Iterating over a tag iterates over its contents.</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#__len__">__len__</a></td>
    <td><span>The length of a tag is the length of its list of contents.</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#__contains__">__contains__</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#__nonzero__">__nonzero__</a></td>
    <td><span>A tag is non-None even if it has no contents.</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#__setitem__">__setitem__</a></td>
    <td><span>Setting tag[key] sets the value of the 'key' attribute for the</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#__delitem__">__delitem__</a></td>
    <td><span>Deleting tag[key] deletes all 'key' attributes for the tag.</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#__call__">__call__</a></td>
    <td><span>Calling a tag like a function is the same as calling its</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#__getattr__">__getattr__</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#__eq__">__eq__</a></td>
    <td><span>Returns true iff this tag has the same name, the same attributes,</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#__ne__">__ne__</a></td>
    <td><span>Returns true iff this tag is not identical to the other tag,</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#__repr__">__repr__</a></td>
    <td><span>Renders this tag as a string.</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#__unicode__">__unicode__</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#_sub_entity">_sub_entity</a></td>
    <td><span>Used with a regular expression to substitute the</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#__str__">__str__</a></td>
    <td><span>Returns a string or Unicode representation of this tag and</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#decompose">decompose</a></td>
    <td><span>Recursively destroys the contents of this tree.</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#prettify">prettify</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#renderContents">renderContents</a></td>
    <td><span>Renders the contents of this tag as a string in the given</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#find">find</a></td>
    <td><span>Return only the first child of this Tag matching the given</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#findAll">findAll</a></td>
    <td><span>Extracts a list of Tag objects that match the given</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#fetchText">fetchText</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#firstText">firstText</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#_getAttrMap">_getAttrMap</a></td>
    <td><span>Initializes a map representation of this tag's attributes,</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#childGenerator">childGenerator</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.Tag.html#recursiveChildGenerator">recursiveChildGenerator</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr>
  
</table>
      
        <p>
          Inherited from <a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html">PageElement</a>:
        </p>
        <table class="children sortable" id="id61">
  
  
  
  
  <tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#setup">setup</a></td>
    <td><span>Sets up the initial relations between this element and</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#replaceWith">replaceWith</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#replaceWithChildren">replaceWithChildren</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#extract">extract</a></td>
    <td><span>Destructively rips this element out of the tree.</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#_lastRecursiveChild">_lastRecursiveChild</a></td>
    <td><span>Finds the last element beneath this object to be parsed.</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#insert">insert</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#append">append</a></td>
    <td><span>Appends the given tag to the contents of this tag.</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#findNext">findNext</a></td>
    <td><span>Returns the first item that matches the given criteria and</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#findAllNext">findAllNext</a></td>
    <td><span>Returns all items that match the given criteria and appear</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#findNextSibling">findNextSibling</a></td>
    <td><span>Returns the closest sibling to this Tag that matches the</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#findNextSiblings">findNextSiblings</a></td>
    <td><span>Returns the siblings of this Tag that match the given</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#findPrevious">findPrevious</a></td>
    <td><span>Returns the first item that matches the given criteria and</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#findAllPrevious">findAllPrevious</a></td>
    <td><span>Returns all items that match the given criteria and appear</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#findPreviousSibling">findPreviousSibling</a></td>
    <td><span>Returns the closest sibling to this Tag that matches the</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#findPreviousSiblings">findPreviousSiblings</a></td>
    <td><span>Returns the siblings of this Tag that match the given</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#findParent">findParent</a></td>
    <td><span>Returns the closest parent of this Tag that matches the given</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#findParents">findParents</a></td>
    <td><span>Returns the parents of this Tag that match the given</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#_findOne">_findOne</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#_findAll">_findAll</a></td>
    <td><span>Iterates over a generator looking for things that match.</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#nextGenerator">nextGenerator</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#nextSiblingGenerator">nextSiblingGenerator</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#previousGenerator">previousGenerator</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#previousSiblingGenerator">previousSiblingGenerator</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#parentGenerator">parentGenerator</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#substituteEncoding">substituteEncoding</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="basemethod">
    
    
    <td>Method</td>
    <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#toEncoding">toEncoding</a></td>
    <td><span>Encodes an object to a string in some encoding, or to Unicode.</span></td>
  </tr>
  
</table>
      
      
    </div>
    
    
    
    <div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag._invert"></a>
        <a name="_invert"></a>
        <div class="functionHeader">
        
        def _invert(h):
        
      </div>
        <div class="functionBody">
          
          <div>Cheap function to invert a hash.<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag._convertEntities"></a>
        <a name="_convertEntities"></a>
        <div class="functionHeader">
        
        def _convertEntities(self, match):
        
      </div>
        <div class="functionBody">
          
          <div>Used in a call to re.sub to replace HTML, XML, and numeric entities with
the appropriate Unicode characters. If HTML entities are being converted, 
any unrecognized entities are escaped.<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.__init__"></a>
        <a name="__init__"></a>
        <div class="functionHeader">
        
        def __init__(self, parser, name, attrs=None, parent=None, previous=None):
        
      </div>
        <div class="functionBody">
          <div class="interfaceinfo">overridden in <a href="pymine.beautifulsoup.BeautifulSoup.BeautifulStoneSoup.html">pymine.beautifulsoup.BeautifulSoup.BeautifulStoneSoup</a></div>
          <div>Basic constructor.<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.getString"></a>
        <a name="getString"></a>
        <div class="functionHeader">
        
        def getString(self):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.setString"></a>
        <a name="setString"></a>
        <div class="functionHeader">
        
        def setString(self, string):
        
      </div>
        <div class="functionBody">
          
          <div>Replace the contents of the tag with a string<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.getText"></a>
        <a name="getText"></a>
        <div class="functionHeader">
        
        def getText(self, separator=u''):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.get"></a>
        <a name="get"></a>
        <div class="functionHeader">
        
        def get(self, key, default=None):
        
      </div>
        <div class="functionBody">
          
          <div>Returns the value of the 'key' attribute for the tag, or the value given
for 'default' if it doesn't have that attribute.<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.clear"></a>
        <a name="clear"></a>
        <div class="functionHeader">
        
        def clear(self):
        
      </div>
        <div class="functionBody">
          
          <div>Extract all children.<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.index"></a>
        <a name="index"></a>
        <div class="functionHeader">
        
        def index(self, element):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.has_key"></a>
        <a name="has_key"></a>
        <div class="functionHeader">
        
        def has_key(self, key):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.__getitem__"></a>
        <a name="__getitem__"></a>
        <div class="functionHeader">
        
        def __getitem__(self, key):
        
      </div>
        <div class="functionBody">
          
          <div>tag[key] returns the value of the 'key' attribute for the tag, and 
throws an exception if it's not there.<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.__iter__"></a>
        <a name="__iter__"></a>
        <div class="functionHeader">
        
        def __iter__(self):
        
      </div>
        <div class="functionBody">
          
          <div>Iterating over a tag iterates over its contents.<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.__len__"></a>
        <a name="__len__"></a>
        <div class="functionHeader">
        
        def __len__(self):
        
      </div>
        <div class="functionBody">
          
          <div>The length of a tag is the length of its list of contents.<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.__contains__"></a>
        <a name="__contains__"></a>
        <div class="functionHeader">
        
        def __contains__(self, x):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.__nonzero__"></a>
        <a name="__nonzero__"></a>
        <div class="functionHeader">
        
        def __nonzero__(self):
        
      </div>
        <div class="functionBody">
          
          <div>A tag is non-None even if it has no contents.<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.__setitem__"></a>
        <a name="__setitem__"></a>
        <div class="functionHeader">
        
        def __setitem__(self, key, value):
        
      </div>
        <div class="functionBody">
          
          <div>Setting tag[key] sets the value of the 'key' attribute for the tag.<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.__delitem__"></a>
        <a name="__delitem__"></a>
        <div class="functionHeader">
        
        def __delitem__(self, key):
        
      </div>
        <div class="functionBody">
          
          <div>Deleting tag[key] deletes all 'key' attributes for the tag.<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.__call__"></a>
        <a name="__call__"></a>
        <div class="functionHeader">
        
        def __call__(self, *args, **kwargs):
        
      </div>
        <div class="functionBody">
          
          <div>Calling a tag like a function is the same as calling its findAll() 
method. Eg. tag('a') returns a list of all the A tags found within this 
tag.<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.__getattr__"></a>
        <a name="__getattr__"></a>
        <div class="functionHeader">
        
        def __getattr__(self, tag):
        
      </div>
        <div class="functionBody">
          <div class="interfaceinfo">overridden in <a href="pymine.beautifulsoup.BeautifulSoup.BeautifulStoneSoup.html">pymine.beautifulsoup.BeautifulSoup.BeautifulStoneSoup</a></div>
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.__eq__"></a>
        <a name="__eq__"></a>
        <div class="functionHeader">
        
        def __eq__(self, other):
        
      </div>
        <div class="functionBody">
          
          <div>Returns true iff this tag has the same name, the same attributes, and 
the same contents (recursively) as the given tag.</p>
<p>NOTE: right now this will return false if two tags have the same 
attributes in a different order. Should this be fixed?<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.__ne__"></a>
        <a name="__ne__"></a>
        <div class="functionHeader">
        
        def __ne__(self, other):
        
      </div>
        <div class="functionBody">
          
          <div>Returns true iff this tag is not identical to the other tag, as defined 
in __eq__.<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.__repr__"></a>
        <a name="__repr__"></a>
        <div class="functionHeader">
        
        def __repr__(self, encoding=DEFAULT_OUTPUT_ENCODING):
        
      </div>
        <div class="functionBody">
          
          <div>Renders this tag as a string.<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.__unicode__"></a>
        <a name="__unicode__"></a>
        <div class="functionHeader">
        
        def __unicode__(self):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag._sub_entity"></a>
        <a name="_sub_entity"></a>
        <div class="functionHeader">
        
        def _sub_entity(self, x):
        
      </div>
        <div class="functionBody">
          
          <div>Used with a regular expression to substitute the appropriate XML entity 
for an XML special character.<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.__str__"></a>
        <a name="__str__"></a>
        <div class="functionHeader">
        
        def __str__(self, encoding=DEFAULT_OUTPUT_ENCODING, prettyPrint=False, indentLevel=0):
        
      </div>
        <div class="functionBody">
          
          <div>Returns a string or Unicode representation of this tag and its contents.
To get Unicode, pass None for encoding.</p>
<p>NOTE: since Python's HTML parser consumes whitespace, this method is not
certain to reproduce the whitespace present in the original string.<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.decompose"></a>
        <a name="decompose"></a>
        <div class="functionHeader">
        
        def decompose(self):
        
      </div>
        <div class="functionBody">
          
          <div>Recursively destroys the contents of this tree.<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.prettify"></a>
        <a name="prettify"></a>
        <div class="functionHeader">
        
        def prettify(self, encoding=DEFAULT_OUTPUT_ENCODING):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.renderContents"></a>
        <a name="renderContents"></a>
        <div class="functionHeader">
        
        def renderContents(self, encoding=DEFAULT_OUTPUT_ENCODING, prettyPrint=False, indentLevel=0):
        
      </div>
        <div class="functionBody">
          
          <div>Renders the contents of this tag as a string in the given encoding. If 
encoding is None, returns a Unicode string..<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.find"></a>
        <a name="find"></a>
        <div class="functionHeader">
        
        def find(self, name=None, attrs={}, recursive=True, text=None, **kwargs):
        
      </div>
        <div class="functionBody">
          
          <div>Return only the first child of this Tag matching the given criteria.<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.findAll"></a>
        <a name="findAll"></a>
        <div class="functionHeader">
        
        def findAll(self, name=None, attrs={}, recursive=True, text=None, limit=None, **kwargs):
        
      </div>
        <div class="functionBody">
          
          <div>Extracts a list of Tag objects that match the given criteria.  You can 
specify the name of the Tag and any attributes you want the Tag to 
have.</p>
<p>The value of a key-value pair in the 'attrs' map can be a string, a list
of strings, a regular expression object, or a callable that takes a string 
and returns whether or not the string matches for some custom definition of
'matches'. The same is true of the tag name.<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.fetchText"></a>
        <a name="fetchText"></a>
        <div class="functionHeader">
        
        def fetchText(self, text=None, recursive=True, limit=None):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.firstText"></a>
        <a name="firstText"></a>
        <div class="functionHeader">
        
        def firstText(self, text=None, recursive=True):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag._getAttrMap"></a>
        <a name="_getAttrMap"></a>
        <div class="functionHeader">
        
        def _getAttrMap(self):
        
      </div>
        <div class="functionBody">
          
          <div>Initializes a map representation of this tag's attributes, if not 
already initialized.<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.childGenerator"></a>
        <a name="childGenerator"></a>
        <div class="functionHeader">
        
        def childGenerator(self):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="pymine.beautifulsoup.BeautifulSoup.Tag.recursiveChildGenerator"></a>
        <a name="recursiveChildGenerator"></a>
        <div class="functionHeader">
        
        def recursiveChildGenerator(self):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div>
    
    <address>
      <a href="index.html">API Documentation</a> for pymine, generated by <a href="http://codespeak.net/~mwh/pydoctor/">pydoctor</a> at 2010-04-07 23:15:24.
    </address>
  </body>
</html>